SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].gspPurchase_INSERT
(
@orderId AS int = null,
@productId AS int = null,
@quantity AS int = null,
@createdDate AS datetime = null,
@lastModifiedDate AS datetime = null,
@isDeleted AS bit = null
)
AS

INSERT INTO
  [dbo].[Purchase]
(
  [OrderId],
  [ProductId],
  [Quantity],
  [CreatedDate],
  [LastModifiedDate],
  [IsDeleted]
)
VALUES
(
  @orderId,
  @productId,
  @quantity,
  @createdDate,
  @lastModifiedDate,
  @isDeleted
)

SELECT SCOPE_IDENTITY()


GO
